home *** CD-ROM | disk | FTP | other *** search
/ PCMania 40 / PCMania CD40_1.iso / render40 / oca_a / mesa.inc < prev    next >
Text File  |  1995-10-03  |  4KB  |  237 lines

  1. #include "shapes.inc"
  2. #include "texturas.inc"
  3.  
  4. #declare Bound_Mesa = box {
  5.    <-1.0, -1.0, -1.0>, <1.0, 1.0, 1.0>
  6.   no_shadow
  7.   scale <6.127954, 5.000000, 3.189624>
  8.   translate <0.000, -1.000, 2.00>
  9. }
  10.  
  11. #declare PATAIZQ1 = cylinder {
  12.   <0,0,1>, <0,0,0>, 1
  13.   texture {
  14.     Verde_silla
  15.   }
  16.   scale <0.500, 0.500, 2.000>
  17.   translate <-4.500, -4.000, -1.00>
  18. }
  19.  
  20. #declare PATADERCH1 = cylinder {
  21.   <0,0,1>, <0,0,0>, 1
  22.   texture {
  23.     Verde_silla
  24.   }
  25.   scale <0.500, 0.500, 2.00>
  26.   translate <4.500, -4.000, -1.00>
  27. }
  28.  
  29. #declare PATACURVAIZQ1 = torus { 
  30.   1.500, 0.500  // Major, minor radius
  31.   rotate -x*90
  32.   texture {
  33.     Verde_silla
  34.   }
  35.   rotate <-90.0, 0.00, 0.00>
  36.   translate <-3.00, -4.00, 1.00>
  37. }
  38.  
  39. #declare CORTEIZQ1 = plane {
  40.   z,0
  41.   texture {
  42.     Verde_silla
  43.   }
  44.   rotate <0.000, -270.000, 0.000>
  45.   translate <-3.000, -4.00, 0.00>
  46. }
  47.  
  48. #declare PATACURVADERCH1 = torus { 
  49.   1.500, 0.500  // Major, minor radius
  50.   rotate -x*90
  51.   texture {
  52.     Verde_silla
  53.   }
  54.   rotate <-90.00, 0.000, 0.00>
  55.   translate <3.000, -4.00, 1.00>
  56. }
  57.  
  58. #declare CORTEDERCH1 = plane {
  59.   z,0
  60.   texture {
  61.     Verde_silla
  62.   }
  63.   rotate <0.00, -90.000, 0.00>
  64.   translate <3.000, -4.00, 0.00>
  65. }
  66.  
  67. #declare CORTEIZQDERCH1 = plane {
  68.   z,0
  69.   texture {
  70.     Verde_silla
  71.   }
  72.   rotate <0.00, -180.00, 0.00>
  73.   translate <0.000, -4.00, 1.00>
  74. }
  75.  
  76. #declare CURVACORTADAIZQ1 = intersection {
  77.   object { PATACURVAIZQ1 }
  78.   object { CORTEIZQDERCH1 }
  79.   object { CORTEIZQ1 }
  80.   texture {
  81.     Verde_silla
  82.   }
  83. }
  84.  
  85. #declare CURVACORTADADERCH1 = intersection {
  86.   object { PATACURVADERCH1 }
  87.   object { CORTEDERCH1 }
  88.   object { CORTEIZQDERCH1 }
  89.   texture {
  90.     Verde_silla
  91.   }
  92. }
  93.  
  94. #declare UNEPATA = cylinder {
  95.   <0,0,1>, <0,0,0>, 1
  96.   texture {
  97.     Verde_silla
  98.   }
  99.   scale <0.50, 0.50, 6.00>
  100.   rotate <0.000, -90.000, 0.00>
  101.   translate <3.00, -4.00, 2.500>
  102. }
  103.  
  104. #declare DELANTERA = union {
  105.   object { PATAIZQ1 }
  106.   object { PATADERCH1 }
  107.   object { CURVACORTADAIZQ1 }
  108.   object { CURVACORTADADERCH1 }
  109.   object { UNEPATA }
  110.   texture {
  111.     Verde_silla
  112.   }
  113. }
  114.  
  115. #declare PATAIZQ2 = cylinder {
  116.   <0,0,1>, <0,0,0>, 1
  117.   texture {
  118.     Verde_silla
  119.   }
  120.   scale <0.50, 0.50, 2.000>
  121.   translate <-4.50, -4.00, -1.00>
  122. }
  123.  
  124. #declare PATADERCH2 = cylinder {
  125.   <0,0,1>, <0,0,0>, 1
  126.   texture {
  127.     Verde_silla
  128.   }
  129.   scale <0.50, 0.500, 2.000>
  130.   translate <4.50, -4.00, -1.00>
  131. }
  132.  
  133. #declare PATACURVAIZQ2 = torus { 
  134.   1.500, 0.500  // Major, minor radius
  135.   rotate -x*90
  136.   texture {
  137.     Verde_silla
  138.   }
  139.   rotate <-90.00, 0.000, 0.00>
  140.   translate <-3.00, -4.000, 1.00>
  141. }
  142.  
  143. #declare CORTEIZQ2 = plane {
  144.   z,0
  145.   texture {
  146.     Verde_silla
  147.   }
  148.   rotate <0.00, -270.00, 0.00>
  149.   translate <-3.00, -4.0, 0.00>
  150. }
  151.  
  152. #declare PATACURVADERCH2 = torus { 
  153.   1.500, 0.500  // Major, minor radius
  154.   rotate -x*90
  155.   texture {
  156.     Verde_silla
  157.   }
  158.   rotate <-90.00, 0.000, 0.00>
  159.   translate <3.00, -4.00, 1.0>
  160. }
  161.  
  162. #declare CORTEDERCH2 = plane {
  163.   z,0
  164.   texture {
  165.     Verde_silla
  166.   }
  167.   rotate <0.0, -90.00, 0.00>
  168.   translate <3.0, -4.0, 0.0>
  169. }
  170.  
  171. #declare CORTEIZQDERCH2 = plane {
  172.   z,0
  173.   texture {
  174.     Verde_silla
  175.   }
  176.   rotate <0.0, -180.0, 0.0>
  177.   translate <0.0, -4.0, 1.0>
  178. }
  179.  
  180. #declare CURVACORTADAIZQ2 = intersection {
  181.   object { PATACURVAIZQ2 }
  182.   object { CORTEIZQDERCH2 }
  183.   object { CORTEIZQ2 }
  184.   texture {
  185.     Verde_silla
  186.   }
  187. }
  188. #declare CURVACORTADADERCH2 = intersection {
  189.   object { PATACURVADERCH2 }
  190.   object { CORTEDERCH2 }
  191.   object { CORTEIZQDERCH2 }
  192.   texture {
  193.     Verde_silla
  194.   }
  195. }
  196.  
  197. #declare UNEPATA1 = cylinder {
  198.   <0,0,1>, <0,0,0>, 1
  199.   texture {
  200.     Verde_silla
  201.   }
  202.   scale <0.5, 0.50, 6.0>
  203.   rotate <0.00, -90.0, 0.0>
  204.   translate <3.0, -4.0, 2.5>
  205. }
  206.  
  207. #declare TRASERA = union {
  208.   object { PATAIZQ2 }
  209.   object { PATADERCH2 }
  210.   object { CURVACORTADAIZQ2 }
  211.   object { CURVACORTADADERCH2 }
  212.   object { UNEPATA1 }
  213.   texture {
  214.     Verde_silla
  215.   }
  216.   translate <0.00, 5.0, 0.00>
  217. }
  218.  
  219. #declare SUPERFIE = box {
  220.   <-1, -1, -1>, <1, 1, 1>
  221.   texture {
  222.     Mesa_Silla
  223.   }
  224.   scale <4.80, 3.800, 0.20>
  225.   translate <0.00, -1.50, 3.220>
  226. }
  227.  
  228. #declare MESA = union {
  229.   object { DELANTERA }
  230.   object { TRASERA }
  231.   object { SUPERFIE }
  232.   bounded_by { Bound_Mesa }
  233.   scale <0.50, 0.500, 0.50>
  234. }
  235.  
  236. #declare MESA2= MESA
  237.